package com.euond.accv.gateway.config;

import com.euond.accv.gateway.filter.AccessTokenFilter;
import com.euond.accv.gateway.filter.ErrorFilter;
import com.euond.accv.gateway.filter.SuperTokenFilter;
import com.euond.accv.gateway.filter.UrlPathFilter;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: QiangLiu
 * @create: 2017-10-25 上午10:35
 * @version: 1.0
 **/
@Configuration
@EnableAutoConfiguration
public class FilterConfiguration {

    @Bean
    public AccessTokenFilter accessFilter(){
        return new AccessTokenFilter();
    }

    @Bean
    public UrlPathFilter urlPathFilter(){
        return new UrlPathFilter();
    }

    @Bean
    public SuperTokenFilter superTokenFilter(){
        return new SuperTokenFilter();
    }

    @Bean
    public ErrorFilter errorFilter(){
        return new ErrorFilter();
    }
}
